package com.xiaolin.date;

import java.time.LocalDate;
import java.time.MonthDay;
import java.time.Year;

/**
 * @ClassName TestYear
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/9/27
 * @Version 1.0
 */
public class TestYear {
    public static void main(String[] args) {
        //获取当前年份
        Year now = Year.now();
        //得出指定天数的年月日
        LocalDate localDateByDay = now.atDay(88);
        //算出当前年月日
        LocalDate localDateByMouth = now.atMonthDay(MonthDay.now());
    }
}
